package myapp

class Device {

	String deviceId
	String type
	Boolean active
	
	static belongsTo = [user: User, tag: Tag, alias: Alias]
	
	static constraints = {
		deviceId (nullable: false, blank: false, maxLength: 32)
		type (nullable: false, blank: false, maxLength: 32)
		active (nullable: false)
		user (nullable: false)
		tag (nullable: false)
		alias (nullable: false)
	}

}
